public class Pro {
	String factoryaddr, name, unit;
	int stockcount, itemno;
	double price;
	Boolean discount;

	public Pro(int stockcount, int itemno) {
		this.itemno = itemno;
		this.stockcount = stockcount;
	}

	public Pro(boolean discount, String factoryaddr, int itemno, String name,
			double price, int stockcount, String unit) {
		super();
		this.discount = discount;
		this.factoryaddr = factoryaddr;
		this.itemno = itemno;
		this.name = name;
		this.price = price;
		this.stockcount = stockcount;
		this.unit = unit;
	}

	@Override
	public String toString() {
		return "Pro [factoryaddr=" + factoryaddr + ", name=" + name + ", unit="
				+ unit + ", stockcount=" + stockcount + ", itemno=" + itemno
				+ ", price=" + price + ", discount=" + discount + "]";
	}

	public Pro() {

	}

	public String getFactoryaddr() {
		return factoryaddr;
	}

	public void setFactoryaddr(String factoryaddr) {
		this.factoryaddr = factoryaddr;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public int getStockcount() {
		return stockcount;
	}

	public void setStockcount(int stockcount) {
		this.stockcount = stockcount;
	}

	public int getItemno() {
		return itemno;
	}

	public void setItemno(int itemno) {
		this.itemno = itemno;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
